package edu.eas.common.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cql
 */
@Data
public class OauthClientDetails implements Serializable {

    @ApiModelProperty(value = "客户端标识")
    private String clientId;

    @ApiModelProperty(value = "接入资源列表")
    private String resourcesIds;

    @ApiModelProperty(value = "客户端密码，加密存储")
    private String clientSecret;

    @ApiModelProperty(value = "授权范围标识，比如指定微服务名称，则只可以访问指定的微服务")
    private String scope;

    @ApiModelProperty(value = "授权类型，支持同时多种授权类型(authorization_code, password, implicit,client_credentials,refresh_token)")
    private String authorizedGrantTypes;

    @ApiModelProperty(value = "重定向页面")
    private String webServerRedirectUri;

    @ApiModelProperty(value = "此客户端可以使用的权限（基于Spring Security authorities）")
    private String authorities;

    @ApiModelProperty(value = "access_token过期时间")
    private Integer accessTokenValidity;

    @ApiModelProperty(value = "refresh_token过期时间")
    private Integer refreshTokenValidity;

    @ApiModelProperty(value = "额外信息")
    private String additionalInformation;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "存档（未知）")
    private Integer archived;

    @ApiModelProperty(value = "可信的（未知）")
    private Integer trusted;

    @ApiModelProperty(value = "自动批准（未知）")
    private String autoApprove;


}
